home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
BUSINESS
/
ATOQP.ARJ
/
ATOQP.DOC
next >
Wrap
Text File
|
1992-02-16
|
10KB
|
215 lines
ATOQP.EXE -- ASCII to Quattro Pro
=================================
What does it do?
================
ATOQP is a utility program designed to take a space delimited ASCII file
and translate it into a Quattro Pro (.WQ1) file. The major purpose of
ATOQP is to get around the limitation of having less than 255 characters
on a line when you do an ASCII import in Quattro Pro. ATOQP reads
your text file and determines what type of entry your data would be
(label or value), thus eliminating the need for parsing your file.
There is no need for special delimiters. ATOQP determines where one
cell ends and another begins when it encounters spaces. The number of
spaces does not matter, so you can bring in all of those space padded
text files from your word-processor or database programs.
If you receive a text file that has tabs or other delimiters, you must
remove them before using this program. Any word processor with a
search and replace command will do the trick.
How do you use it?
==================
To use ATOQP, simply copy the executable program to your hard-disk.
I recommend that you put it in a temporary directory with your text
file(s). Once you are in the directory with your files, simply type:
ATOQP <text file> <spreadsheet.wq1> [CR]
In English, this would be:
ATOQP data.txt budget.wq1
if you wanted to translate the data.txt file into a spreadsheet named
budget.wq1. The [CR] means to press the enter key. If you happen to
forget what the format is, simply type ATOQP with no arguments.
It is necessary to place the .WQ1 extension onto the file. If you
forget, however, then you must rename the file so that it has a .WQ1
extension before trying to open it in Quattro Pro. You can do this at
any local DOS prompt with the RENAME command.
What does it all mean?
======================
ATOQP will tell you what it is doing (or not doing) while it is
running. There are two methods that ATOQP can process your file:
memory intensive and disk intensive. The size and structure of the
file, as well as the amount of available RAM (conventional) determine
how the program operates. Barring any error messages, you will see
one of the following sets of messages:
RAM intensive messages Disk intensive messages
======================= ============================
Analyzing the input file... Analyzing the input file...
Parsing data file... Insufficient memory to process file.
Cleaning up .tmp files... Switching to disk-access mode
This could take some time.
Parsing data file...
Cleaning up .tmp files...
Here is what each message indicates:
Analyzing the input file...
ATOQP is examining your incoming text file to determine its
structure. Depending on the amount of information in the
text file, as well as how the information breaks down in terms
of rows and columns, ATOQP will decide upon a course of
action in translating your text file.
Parsing data file...
ATOQP is examining each entry in your file and determining its
spreadsheet equivalent. For example, the entry 123 would be
brought in as a value, while 123-456 would be brought in as
a label. If ATOQP cannot figure out what the entry is, it
will bring it into Quattro Pro as a label and let you
decide.
Insufficient memory to process file
Switching to disk-access mode
This could take some time.
If memory does not permit (perhaps the file is too large, or
its structure makes it impossible to allocate enough RAM),
then ATOQP will do the job via disk access. This process
is very disk intensive and slow, but it gets the job done.
*** WARNING ***
If you think you have problems with your hard drive, run the DOS
program CHKDSK or some other utility (e.g., Norton Utilities).
Bad sectors on the disk or excessive amounts of lost chains and
clusters is not good. Combining the above problems with any disk
intensive operations is asking for trouble.
Cleaning up .tmp files...
ATOQP creates a series of temporary work files. Since it would
be rude to leave these on your drive, ATOQP clears them out.
After the job is done, ATOQP will give you a report. It will tell you
how many rows and columns of data were parsed, how long the operation
took, and the average number of records processed per second.
If you wish to terminate the program at any time (for example, if the
the program is reading and writing to disk and you want to stop and
do other work), you can press Ctrl-C (Ctrl-Break on some machines).
In technical terms, you are making an "ungraceful exit" from the program.
Becuase the program was not allowed to finish, there will be some files
you will want to remove. You will notice them very quickly, as they all
have the extension .TMP with a number in front of it (i.e., 1.TMP, 2.TMP,
etc.). You must remove these files before running the program again.
Error Messages:
===============
No program is complete without error messages. For the most part, the
only message(s) that you are likely to run into will occur while ATOQP is
analyzing your file. If you try to run this program and do not have
enough free space on your drive, ATOQP will tell you about it. It
will also inform you of how much free space you need to clear up for
the program to run.
If you get any messages that end with the words "Program Terminated"
and an unceremonious dump back to your DOS prompt, please get in
contact with the author. This type of information will help to refine
the program. I have done my best to limit chances of errors.
Known Program Limitations:
==========================
ATOQP is a specific tool for a specific job. If you have small files
that are already delimited (i.e., quote and comma), then use the
import features of Quattro Pro. ATOQP was written to get around a
limitation of Quattro Pro and its ASCII import function. It is not
meant to be a replacement for Quattro Pro's import tools, just a
supplement.
ATOQP is expecting a 'rectangular' file. This means that you have the
same amount of cell information in each row (i.e., each row has the
same number of space delimited entries). The program will not fail if
you do not meet this requirement, but you will not get the spreadsheet
you expect when it is finished. The concept of a rectangular file
should not cause too many problems, as this is the form of most text
files that would be downloaded from other applications (i.e.,
mainframe databases).
ATOQP does not use any delimiters (other than space). If you need
to have a space in a cell entry (e.g., Joe User in one cell), replace the
space with an underscore character (e.g., Joe_User). You can remove
the underscore with Quattro Pro's /Edit | Search & Replace command.
ATOQP will warn you if you try to bring in a file that is too large to
fit into a spreadsheet. It will then go on and process as much of
your file as possible. Most people will not run into this problem,
since a spreadsheet in Quattro Pro has 2,097,152 cells. If your file is
this large, you might want to seriously consider a database application.
ATOQP may go into disk-access mode on what you may consider to be a
small file. File structure plays a large role in determining the
approach the program takes -- larger than the actual size of the file on
disk. Just like Quattro Pro, the more columns of data there are, the
more memory is needed. If you have a large number of entries on a
line, it could force the program into the disk mode even if there are
only a few rows.
Other information:
==================
This program is shareware. Use it, share it with your friends. If
you use this program, and you like what it does, support future
versions and other shareware utilities by sending $10.00 to:
Rich Wilkman
41 Grandview Street #1405
Santa Cruz, CA 95060
If you have questions, comments, problems to report, or just want to
practice your electronic mail skills, I can also be reached via
Compuserve. Send CIS mail to: 70412,1340. Feel free to send
compliments (even programmers need to be told their work is liked),
or suggestions for features that you would like to see.
Obligatory Disclaimers:
=======================
Borland International is *NOT* responsible for this program in any way.
If you have any questions about its operation, or problems with the
program itself, please do not contact Borland. Use one of the methods
listed above to make contact with the author of the program.
This program was developed with Borland C++ versions 2.0 and 3.0, and
the resulting files were tested in Quattro Pro 3.0. Since the spread-
sheets created by this program contain only the most basic file infor-
mation, you can use this program to create files for versions 1 and 2
of Quattro Pro.
I have tested this program to the best of my abilities, but no program
is perfect. If anything out of the ordinary happens while running
this program, please contact the author. I cannot be responsible for
any data lost while using this program, and I cannot stress enough the
need for backups of your data. The only testament of faith I can
give is that I developed and tested this program on my personal
machine with no loss of data (not even a byte).